package com.ssyt.yt1.day27.proxy;

/**
 * 中介：帮租房者子找房子<br>
 *
 * @author Hsu.
 * @since 2015年12月31日
 */
public class Agency implements Intent {

	private Person person;

	public Agency(Person person) {
		super();
		this.person = person;
	}

	@Override
	public void findHouse() {
		person.findHouse();
		lookHouseResource();
		call();
		System.out.println("找到房子...");
	}

	public void lookHouseResource() {
		System.out.println("查看房源");
	}

	public void call() {
		System.out.println("打电话联系房子");
	}

}
